//
//  DataTableViewCell.m
//  Today
//
//  Created by dllo on 15/5/30.
//  Copyright (c) 2015年 fanfan. All rights reserved.
//

#import "DataTableViewCell.h"

@implementation DataTableViewCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self createMycell];
    }
    return self;
}
- (void)createMycell
{
    self.title = [[UILabel alloc]init];
    [self.contentView addSubview:self.title];
    [self.title release];
    
    self.imagePic = [[UIImageView alloc]init];
    [self.contentView addSubview:self.imagePic];
    [self.imagePic release];
}
- (void)layoutSubviews
{
    [super layoutSubviews];
    self.imagePic.frame = CGRectMake(5, 0, 150, 150);
    self.imagePic.contentMode = UIViewContentModeScaleAspectFit;
    self.title.frame = CGRectMake(155, 15, 210, 150);
    self.title.numberOfLines = 8;
    [self.title sizeToFit];
    
    
    
}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
